<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>



        /* fetch是原生的 */
        fetch('http://127.0.0.1:2000/aa').then(data=>{
            return  data.json()
        }).then(res=>{
            console.log(res,2222);
        })

        fetch('http://127.0.0.1:2000/bb/55',{
            method:'delete'
        }).then(data=>{
            return  data.text()
        }).then(res=>{
            console.log(res,3333);
        })
    </script>
</body>

</html>